Skip to content

test(docs-bundle): pin exit code 2 for a missing config (RIG-9024) - #65

Merged
mattwilkinsonn merged 1 commit into
mainfrom
web/rig-9024-pin-exit-code-2-for-a-missing-config
Nov 10, 2026
Merged

mattwilkinsonn merged 1 commit into
mainfrom
web/rig-9024-pin-exit-code-2-for-a-missing-config

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a CLI test: a missing docs-bundle.toml in required mode exits 2. The README already documents this case, which had no test.

This PR also releases docs-bundle 1.2.0. It has one commit, and that commit's last paragraph is the trailer block (Release-As: 1.2.0 and Co-authored-by). #60 and #62 had two commits each. Their squash bodies put the footer inside a bullet list, before a --------- line, so release-please did not parse it.

Merge note

A default squash of one commit keeps its message, so the trailer block ends the body. Do not add commits.

Verification

  • bun test packages/docs-bundle/cli.test.ts: 3 pass, 0 fail.

Risks

  • Test only. After merge, release PR chore: release main #61 must list docs-bundle 1.2.0. Its OIDC publish must land before 2026-11-12 01:05 UTC.

Refs RIG-9024

Co-authored-by: Matt Wilkinson matt@rigel.build

Release-As: 1.2.0
Co-authored-by: Matt Wilkinson <matt@rigel.build>
@linear-code

linear-code Bot commented Nov 10, 2026

Copy link
Copy Markdown

RIG-9024

@rigel-mintaka

Copy link
Copy Markdown
Contributor Author

Review on 58c79e3e: 0 findings.

  • The test exercises the CLI's config-error path (readPublishConfig throws, check returns 2). It asserts the exit code and the configuration error prefix. bun test packages/docs-bundle/cli.test.ts: 3 pass, 0 fail.
  • The commit's last paragraph is the trailer block (Release-As: 1.2.0, Co-authored-by), and the PR has one commit, so a default squash keeps it as the footer.

All-clear on 58c79e3eacac7d195aba14dacbe83bc3b2f0e465.

@rigel-mintaka
rigel-mintaka marked this pull request as ready for review November 10, 2026 02:52
@mattwilkinsonn
mattwilkinsonn merged commit 8061ae0 into main Nov 10, 2026
1 check passed
@mattwilkinsonn
mattwilkinsonn deleted the web/rig-9024-pin-exit-code-2-for-a-missing-config branch November 10, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants